home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / 360catcher.swf / scripts / frame_18 / PlaceObject2_548_918 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2006-07-21  |  686 b   |  35 lines

  1. onClipEvent(enterFrame){
  2.    if(moveon == false)
  3.    {
  4.       this.gotoAndStop(1);
  5.    }
  6.    if(this._currentframe >= 2 && this._currentframe < 17)
  7.    {
  8.       this.play();
  9.    }
  10.    if(this._currentframe == 17)
  11.    {
  12.       this._y += _root.ballsp;
  13.    }
  14.    if(this._y >= 720 && moveon == true)
  15.    {
  16.       _root.Score -= 100;
  17.       this._y = -106;
  18.       moveon = false;
  19.    }
  20.    if(this.hitTest(_root.plat1) && this.end == false)
  21.    {
  22.       this._y = _root.plat1._y;
  23.       play();
  24.       _root.Score += 700;
  25.       end = true;
  26.    }
  27.    if(this._currentframe == 30)
  28.    {
  29.       this._y = 720;
  30.       end = false;
  31.       this.gotoAndStop(1);
  32.       moveon = false;
  33.    }
  34. }
  35.